﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BW.WMS.BasicData_LC.Dto.Input;
using BW.WMS.BasicData_LC.Dto.OutPut;
using BW.WMS.CodeEnum;
using BW.WMS.LC.Dto.Input;
using BW.WMS.LC.Dto.OutPut;
using Volo.Abp.Application.Services;

namespace BW.WMS.LC
{
    public interface IWareHouserAppService:IApplicationService
    {
        /// <summary>
        /// 创建仓库
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<int>> CreateWareHouser(CreateUpdateWareHouserDtoInput input);
        /// <summary>
        /// 更新仓库
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateWareHouser(CreateUpdateWareHouserDtoInput input);
        /// <summary>
        /// 展示所有仓库+查询+分页
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiPaging<WareHouseDto>> GetWareHouserList(WareHouserDtoOutPut input);
        /// <summary>
        /// 删除仓库
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteWareHouser(Guid id);

        /// <summary>
        /// 获取部门列表
        /// </summary>
        /// <returns></returns>
        Task<ApiResult<List<DepartmentDto>>> GetDepartmentList();

        /// <summary>
        /// 导出仓库数据
        /// </summary>
        /// <param name="outPut"></param>
        /// <returns></returns>
        Task<ApiResult<byte[]>> ExportWareHouserDataAsync(WareHouserDtoOutPut outPut);
        /// <summary>
        /// 添加部门
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddDep(AddDepInput input);
    }
}
